package com.spice.service.entity.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spice.common.constant.PermissionConstant;
import com.spice.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(PermissionConstant.NUTRITION_CONTAIN)
@ApiModel(description = "营养成分表")
public class NutritionContain extends BaseEntity {
    @ApiModelProperty(value = "原料名称", example = "孜然")
    @ExcelProperty(value = "原料名称")
    private String sourcename;
    

    @ApiModelProperty(value = "能量(kj/100g)", example = "18.3")
    @ExcelProperty(value = "能量(kj/100g)")
    private float energy;

    @ApiModelProperty(value = "蛋白质(g/100g)", example = "18.3")
    @ExcelProperty(value = "蛋白质(g/100g)")
    private float protein;

    @ApiModelProperty(value = "脂肪（g/100g）", example = "10.2")
    @ExcelProperty(value = "脂肪（g/100g）")
    private float fat;

    @ApiModelProperty(value = "碳水化合物（g/100g）", example = "56")
    @ExcelProperty(value = "碳水化合物（g/100g）")
    private float carbohydrate;

    @ApiModelProperty(value = "钠（mg/100g）", example = "287")
    @ExcelProperty(value = "钠（mg/100g）")
    private float natrium;

    @ApiModelProperty(value = "数据来源", example = "化验室实测值")
    @ExcelProperty(value = "数据来源")
    private String datasource;

    @ApiModelProperty(value = "负责人", example = "魏俊桃")
    @ExcelProperty(value = "负责人")
    private String principal;

    @ApiModelProperty(value = "维护时间", example = "2021-06-28 20:48:20")
    @ExcelProperty(value = "维护时间（系统注入）")
    private String maintainTime;

    @Override
    public NutritionContain cleanup() {
        super.cleanup();
        return this;
    }
}
